package com.express.ExpInsuranceWallet.dao;
import com.aqgj.util.BaseDaoImpl;
import com.express.ExpInsuranceWallet.bean.ExpInsuranceWallet;
import org.springframework.stereotype.Repository;

@Repository("ExpInsuranceWalletDao")
public class ExpInsuranceWalletDao extends BaseDaoImpl<ExpInsuranceWallet> {

    public void save(ExpInsuranceWallet expInsuranceWallet) {
        if(expInsuranceWallet.getId()!=null){
            this.currentSession().merge(expInsuranceWallet);
        }else{
            this.currentSession().save(expInsuranceWallet);
        }
    }

}